package model;

import javax.xml.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * User:   kosta
 * Date:   3/10/13
 * Time:   9:46 PM
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
@XmlRootElement(name = "produktKosto")
public class ProduktReceta {
    private int id;
    private int produktID;
    @XmlElement(nillable = true)
    private String kostoName;
    private double vlera;

    public ProduktReceta(){
        this(0,0,"",0.0);
    }

    public ProduktReceta(int id, int produktID, String kostoName, double vlera) {
        this.id = id;
        this.produktID = produktID;
        this.kostoName = kostoName;
        this.vlera = vlera;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProduktID() {
        return produktID;
    }

    public void setProduktID(int produktID) {
        this.produktID = produktID;
    }

    public String getKostoName() {
        return kostoName;
    }

    public void setKostoName(String kostoName) {
        this.kostoName = kostoName;
    }

    public double getVlera() {
        return vlera;
    }

    public void setVlera(double vlera) {
        this.vlera = vlera;
    }
}
